package com.mxf.code.service;

import com.mxf.code.dao.UserRoleDao;
import com.mxf.code.entity.UserRole;
import com.mxf.code.entity.UserRoleKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : [mxf]
 * @version : [v1.0]
 * @className : UserRoleServiceImpl
 * @description : [描述说明该类的功能]
 * @createTime : [2022/9/10 10:16]
 * @updateUser : [mxf]
 * @updateTime : [2022/9/10 10:16]
 * @updateRemark : [描述说明本次修改内容]
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleDao userRoleDao;

    @Override
    public int deleteByPrimaryKey(UserRoleKey key) {
        return userRoleDao.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(UserRole record) {
        return userRoleDao.insert(record);
    }

    @Override
    public int insertSelective(UserRole record) {
        return userRoleDao.insertSelective(record);
    }

    @Override
    public UserRole selectByPrimaryKey(UserRoleKey key) {
        return userRoleDao.selectByPrimaryKey(key);
    }

    @Override
    public int updateByPrimaryKeySelective(UserRole record) {
        return userRoleDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserRole record) {
        return userRoleDao.updateByPrimaryKey(record);
    }
}
